package com.water.mapper;

import com.water.entity.Meter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MeterMapper {


    /**
     * 查询用户水表信息
     * @param userId
     * @return
     */
    @Select( "select * from user_meters where user_id=#{userId}")
    Meter selectByUserId(Long userId);
}
